﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A95 RID: 2709
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LockEquipmentCsReq : IMessage<LockEquipmentCsReq>, IMessage, IEquatable<LockEquipmentCsReq>, IDeepCloneable<LockEquipmentCsReq>, IBufferMessage
	{
		// Token: 0x17002229 RID: 8745
		// (get) Token: 0x06007920 RID: 31008 RVA: 0x001434E9 File Offset: 0x001416E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LockEquipmentCsReq> Parser
		{
			get
			{
				return LockEquipmentCsReq._parser;
			}
		}

		// Token: 0x1700222A RID: 8746
		// (get) Token: 0x06007921 RID: 31009 RVA: 0x001434F0 File Offset: 0x001416F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LockEquipmentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700222B RID: 8747
		// (get) Token: 0x06007922 RID: 31010 RVA: 0x00143502 File Offset: 0x00141702
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LockEquipmentCsReq.Descriptor;
			}
		}

		// Token: 0x06007923 RID: 31011 RVA: 0x00143509 File Offset: 0x00141709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentCsReq()
		{
		}

		// Token: 0x06007924 RID: 31012 RVA: 0x0014351C File Offset: 0x0014171C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentCsReq(LockEquipmentCsReq other) : this()
		{
			this.equipmentIdList_ = other.equipmentIdList_.Clone();
			this.isProtected_ = other.isProtected_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007925 RID: 31013 RVA: 0x00143552 File Offset: 0x00141752
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockEquipmentCsReq Clone()
		{
			return new LockEquipmentCsReq(this);
		}

		// Token: 0x1700222C RID: 8748
		// (get) Token: 0x06007926 RID: 31014 RVA: 0x0014355A File Offset: 0x0014175A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> EquipmentIdList
		{
			get
			{
				return this.equipmentIdList_;
			}
		}

		// Token: 0x1700222D RID: 8749
		// (get) Token: 0x06007927 RID: 31015 RVA: 0x00143562 File Offset: 0x00141762
		// (set) Token: 0x06007928 RID: 31016 RVA: 0x0014356A File Offset: 0x0014176A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsProtected
		{
			get
			{
				return this.isProtected_;
			}
			set
			{
				this.isProtected_ = value;
			}
		}

		// Token: 0x06007929 RID: 31017 RVA: 0x00143573 File Offset: 0x00141773
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LockEquipmentCsReq);
		}

		// Token: 0x0600792A RID: 31018 RVA: 0x00143584 File Offset: 0x00141784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LockEquipmentCsReq other)
		{
			return other != null && (other == this || (this.equipmentIdList_.Equals(other.equipmentIdList_) && this.IsProtected == other.IsProtected && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600792B RID: 31019 RVA: 0x001435D4 File Offset: 0x001417D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.equipmentIdList_.GetHashCode();
			if (this.IsProtected)
			{
				num ^= this.IsProtected.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600792C RID: 31020 RVA: 0x00143621 File Offset: 0x00141821
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600792D RID: 31021 RVA: 0x00143629 File Offset: 0x00141829
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600792E RID: 31022 RVA: 0x00143634 File Offset: 0x00141834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsProtected)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.IsProtected);
			}
			this.equipmentIdList_.WriteTo(ref output, LockEquipmentCsReq._repeated_equipmentIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600792F RID: 31023 RVA: 0x00143684 File Offset: 0x00141884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.equipmentIdList_.CalculateSize(LockEquipmentCsReq._repeated_equipmentIdList_codec);
			if (this.IsProtected)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007930 RID: 31024 RVA: 0x001436CC File Offset: 0x001418CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LockEquipmentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.equipmentIdList_.Add(other.equipmentIdList_);
			if (other.IsProtected)
			{
				this.IsProtected = other.IsProtected;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007931 RID: 31025 RVA: 0x00143719 File Offset: 0x00141919
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007932 RID: 31026 RVA: 0x00143724 File Offset: 0x00141924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 40U && num != 42U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.equipmentIdList_.AddEntriesFrom(ref input, LockEquipmentCsReq._repeated_equipmentIdList_codec);
					}
				}
				else
				{
					this.IsProtected = input.ReadBool();
				}
			}
		}

		// Token: 0x04002E58 RID: 11864
		private static readonly MessageParser<LockEquipmentCsReq> _parser = new MessageParser<LockEquipmentCsReq>(() => new LockEquipmentCsReq());

		// Token: 0x04002E59 RID: 11865
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E5A RID: 11866
		public const int EquipmentIdListFieldNumber = 5;

		// Token: 0x04002E5B RID: 11867
		private static readonly FieldCodec<uint> _repeated_equipmentIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04002E5C RID: 11868
		private readonly RepeatedField<uint> equipmentIdList_ = new RepeatedField<uint>();

		// Token: 0x04002E5D RID: 11869
		public const int IsProtectedFieldNumber = 1;

		// Token: 0x04002E5E RID: 11870
		private bool isProtected_;
	}
}
